﻿using System;
using System.Web.Mvc;

namespace MindMelder.Web.Controllers
{
	[HandleError]
	public class HomeController : Controller
	{
		public ActionResult Index()
		{
			Response.AppendHeader("X-XRDS-Location",
					new Uri(Request.Url, Response.ApplyAppPathModifier("~/Home/xrds")).AbsoluteUri);
			return View();
		}

		public ActionResult Xrds()
		{
			return View("Xrds");
		}

		public ActionResult Error()
		{
			return RedirectToAction("Index");
		}
	}
}
